//
//  FilterLevel3CollectionViewCell.m
//  W2MD
//
//  Created by zhudongwei on 14/11/7.
//  Copyright (c) 2014年 zhudongwei. All rights reserved.
//

#import "FilterLevel3CollectionViewCell.h"

@implementation FilterLevel3CollectionViewCell
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self != nil)
    {
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.width)];
        self.imageView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
        self.imageView.contentMode = UIViewContentModeScaleAspectFill;
        self.imageView.clipsToBounds = YES;
        self.imageView.layer.borderColor = [UIColor blackColor].CGColor;
        self.imageView.layer.edgeAntialiasingMask =
        kCALayerLeftEdge | kCALayerRightEdge | kCALayerBottomEdge | kCALayerTopEdge;
        [[self contentView] addSubview:self.imageView];
        
        _checkIV = [[UIImageView alloc] initWithFrame:CGRectMake(self.bounds.size.width-17, 0, 17, 17)];
        self.checkIV.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
        self.checkIV.contentMode = UIViewContentModeScaleAspectFill;
        self.checkIV.clipsToBounds = YES;
        self.checkIV.layer.borderColor = [UIColor whiteColor].CGColor;
        self.checkIV.layer.edgeAntialiasingMask =
        kCALayerLeftEdge | kCALayerRightEdge | kCALayerBottomEdge | kCALayerTopEdge;
        [self.checkIV setImage:[UIImage imageNamed:@"home_check.png"]];
        [[self contentView] addSubview:self.checkIV];
        
        _countLbl = [[UILabel alloc] initWithFrame:CGRectMake(self.bounds.size.width-24, self.bounds.size.height-9, 16, 15)];
        _countLbl.textAlignment = NSTextAlignmentCenter;
        _countLbl.textColor = [UIColor whiteColor];
        _countLbl.font = [UIFont boldSystemFontOfSize:14];
        [[self contentView] addSubview:self.countLbl];
    }
    return self;
}
@end
